package cn.wolfcode.mapper;

import cn.wolfcode.domain.Emp;
import cn.wolfcode.domain.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper

public interface EmpMapper {
    List<Emp> query(@Param("name") String name, @Param("gender") Integer gender, @Param("begin") Date begin, @Param("end") Date end);

    Emp getById(Long id);

    void update(Emp emp);

    void add(Emp emp);

    void delete(List<Long> ids);

    Emp login(Emp loginemp);
}
